home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / Shout3d_runtime / codebase / models / stepInterpolatorTest / floatStepInterpTest.s3d < prev    next >
Text File  |  2000-07-11  |  1KB  |  64 lines

  1. #VRML V2.0 utf8
  2.  
  3. Background{
  4.     color 1 1 1 
  5. }
  6.  
  7. Transform{
  8. translation -12 10 0
  9. children[
  10. Shape{
  11. geometry Box{ size 20 20 20 }
  12. appearance Appearance{
  13. material DEF BOX_MAT Material{
  14.     diffuseColor 0 0 0
  15.     emissiveColor 1 0 0
  16.     transparency 0
  17. }
  18. }
  19. }
  20. ]
  21. }
  22. Transform{
  23. translation -18 10 -6
  24. children[
  25. Shape{
  26. geometry Box{ size 15 15 15 }
  27. appearance Appearance{
  28. material Material{
  29.     diffuseColor 0 0 0
  30.     emissiveColor 0 0 1
  31.     transparency 0
  32. }
  33. }
  34. }
  35. ]
  36. }
  37. DEF Combo_Dummy-TIMER TimeSensor{
  38. cycleInterval 2.667
  39. loop TRUE
  40. }
  41.  
  42. DEF Camera01 Viewpoint{
  43. fieldOfView 0.6024
  44. position 36.45 22.24 -53.66
  45. orientation -0.031 0.997 0.077 -3.907
  46. description "Camera01"
  47. }
  48.  
  49.  
  50. DEF FLOAT_TRACK FloatStepInterp{
  51. key [0, .25, .5, .75]
  52. keyValue [0, .3, .6, 1]
  53. }
  54. ROUTE Combo_Dummy-TIMER.fraction_changed TO FLOAT_TRACK.set_fraction
  55. ROUTE FLOAT_TRACK.value TO BOX_MAT.transparency
  56.  
  57. DEF FLOAT_ARRAY_TRACK FloatArrayStepInterp{
  58. key [0, .25, .5, .75]
  59. keyValue [ 1 0 0, 1 1 0, 0 1 0, 0 0 0 ]
  60. }
  61. ROUTE Combo_Dummy-TIMER.fraction_changed TO FLOAT_ARRAY_TRACK.set_fraction
  62. ROUTE FLOAT_ARRAY_TRACK.value TO BOX_MAT.emissiveColor
  63.  
  64.